import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import hi from '@/components/hi'
import hi1 from '@/components/hi1'
import hi2 from '@/components/hi2'

Vue.use(Router)
let routeBasePath = process.env.NODE_ENV=='development' ? '' : '/point/dist/';
export default new Router({
	  base: routeBasePath,
  	mode: 'history',
    routes: [
      {
          path: '/',
          name: 'HelloWorld',
          component: HelloWorld
      },
    	{
      		path: '/hi',
      		name: 'hi',
      		component: hi,
          children:[
            {path:'hi1',component:hi1},
            {path:'hi2',component:hi2},
          ]
    	},




  	]
})
